Pod::Spec.new do |s|

  s.name         = "LYFoundation"
  s.version      = "1.0.0"
  s.summary      = "LYFoundation is a framework of develop tools."
  s.description  = <<-DESC
  这是一个简单的，工具型框架，目的是为了降低项目初期完成一个任务的复杂度
                   DESC
  s.homepage     = "https://gitee.com/luyees/LYSpecs"
  s.license      = { :type => "MIT", :file => "LICENSE" }
  s.author       = { 'luyee' => 'luyees@126.com' }
  s.platform     = :ios, "10.0"
  s.source       = { :git => "https://gitee.com/luyees/LYFoundation.git", :tag => s.version.to_s }
  
  s.requires_arc = true
  
  s.default_subspec = "LYKit"
  
  s.subspec 'ObjC' do |ss|
    ss.subspec 'Core' do |sss|
      sss.source_files = 'LYFoundation/ObjC/**/*'
      sss.exclude_files = ['LYFoundation/ObjC/Category/*', 'LYFoundation/ObjC/*.h']
      
      sss.dependency 'YYText', '1.0.7'
      sss.framework  = "Foundation"
    end
    
    ss.subspec 'Category' do |sss|
      sss.dependency 'LYFoundation/ObjC/Core'
      
      sss.source_files = ['LYFoundation/ObjC/Category/*', 'LYFoundation/ObjC/*.h']
      
      sss.framework  = "Foundation", "UIKit"
      
      sss.prefix_header_contents = <<-EOS
      #ifdef __OBJC__
      #import "NSString+LYTools.h"
      #endif
      EOS
    end
  end
  
  s.subspec 'LYKit' do |ss|
    ss.subspec 'Core' do |sss|
      sss.source_files = 'LYFoundation/LYKit/**/*'
      sss.exclude_files = ['LYFoundation/LYKit/Category/*', 'LYFoundation/LYKit/*.h']
      
      sss.framework  = "Foundation", "UIKit"
      
      sss.prefix_header_contents = <<-EOS
      #ifdef __OBJC__
      #import "LYKit_Define.h"
      #endif
      EOS
    end
    
    ss.subspec 'Category' do |sss|
      sss.dependency 'LYFoundation/LYKit/Core'
      sss.dependency 'LYFoundation/ObjC'
      
      sss.source_files = ['LYFoundation/LYKit/Category/*', 'LYFoundation/LYKit/*.h']
      
      sss.dependency 'YYText'
      sss.framework  = "Foundation", "UIKit"
    end
  end
  
  s.subspec 'Algor' do |ss|
    ss.source_files = 'LYFoundation/Algor/*.h'
  end
  
end
